package com.aproj.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.aproj.model.UserRole;

public class UserRoleDaoImpl extends HibernateDaoSupport implements UserRoleDao{

	@Override
	public List<UserRole> getUserRoles(long userId) {
		
		List list = getHibernateTemplate().find("from UserRole where userId = ?", userId);
		
		return list;
	}

}
